//=============================================================================
// TFParaTClass
//=============================================================================
class TFParaTClass extends TFWeapon;

function destroyed()
{
    if(tfjetpackfire(firemode[0]).streams[0]!=none) tfjetpackfire(firemode[0]).streams[0].Destroy();
    if(tfjetpackfire(firemode[0]).streams[1]!=none) tfjetpackfire(firemode[0]).streams[1].Destroy();

    super.Destroyed();
}

simulated function bool HasAmmo()
{
    return true;
}

function AdjustPlayerDamage( out int Damage, Pawn InstigatedBy, Vector HitLocation,
						         out Vector Momentum, class<DamageType> DamageType)
{
	TFJetPackFire(FireMode[0]).HitTimer = damage/5;
}

simulated function IncrementFlashCount(int Mode)
{

}

simulated function ZeroFlashCount(int Mode)
{

}

simulated function DrawWeaponInfo(Canvas Canvas)
{
	NewDrawWeaponInfo(Canvas, 0.705*Canvas.ClipY);
}

simulated function NewDrawWeaponInfo(Canvas Canvas, float YPos)
{
	local int i,Count;
	local float ScaleFactor;

	ScaleFactor = 99 * Canvas.ClipX/3200;
	Canvas.Style = ERenderStyle.STY_Alpha;
	Canvas.DrawColor = class'HUD'.Default.WhiteColor;
	Count = Min(8,AmmoAmount(1));
    for( i=0; i<Count; i++ )
    {
		Canvas.SetPos(Canvas.ClipX - (0.5*i+1) * ScaleFactor, YPos);
		Canvas.DrawTile( Material'HudContent.Generic.HUD', ScaleFactor, ScaleFactor, 174, 259, 46, 45);
	}
	if ( AmmoAmount(1) > 8 )
	{
		Count = Min(16,AmmoAmount(1));
		for( i=8; i<Count; i++ )
		{
			Canvas.SetPos(Canvas.ClipX - (0.5*(i-8)+1) * ScaleFactor, YPos - ScaleFactor);
			Canvas.DrawTile( Material'HudContent.Generic.HUD', ScaleFactor, ScaleFactor, 174, 259, 46, 45);
		}
	}
}

function float SuggestAttackStyle()
{
    return 0;
}

function float SuggestDefenseStyle()
{
    return 0;
}

defaultproperties
{
     FireModeClass(0)=Class'taskforces.TFJetpackfire'
     FireModeClass(1)=Class'taskforces.TFParaBombfire'
     SelectAnim="Pickup"
     PutDownAnim="PutDown"
     SelectSound=Sound'TFMedia.Bomber.JetPackSelect'
     SelectForce="SwitchToRocketLauncher"
     AIRating=0.350000
     CurrentRating=0.350000
     bMeleeWeapon=True
     bCanThrow=False
     EffectOffset=(X=15.000000,Y=6.700000,Z=1.200000)
     DisplayFOV=50.000000
     HudColor=(G=200)
     InventoryGroup=8
     GroupOffset=1
     PlayerViewOffset=(X=-2.000000,Y=8.000000)
     PlayerViewPivot=(Yaw=500,Roll=1000)
     BobDamping=2.200000
     AttachmentClass=Class'taskforces.TFJetAttach'
     IconMaterial=Texture'HUDContent.Generic.HUD'
     IconCoords=(X1=253,Y1=146,X2=333,Y2=181)
     ItemName="Bomber"
     Mesh=SkeletalMesh'Weapons.RocketLauncher_1st'
     DrawScale3D=(X=0.700000,Y=1.100000,Z=1.100000)
     AmmoRegenAmount(1)=0.2
     SkillCost=300
     StationDmgModifier=5
}
